$(function(){
    
})

function btnSave(){
    console.log('保存');
    let filename=$('[name=goodsname]').val();
    let year=$('[name=goodsyear]').val();
    let obj={filename,year};
    axios.post('http://localhost:8080/goods',obj).then(res=>{
        let data=res.data;
        if(data.code===1000){
            location.href='./index.html'
        }else{
            console.log(data.msg);
        }
    })
    

}
function btnCel(){
    console.log('取消');
    location.href='./index.html'
}

//获取地址？后面的参数
function getQuery(str=window.location.search){
    const reg=
}